package main

import "fmt"

type person2 struct {
	name string
	age int
	sex string
}

type person3 struct {
	id int
	addr string
}

type student2 struct {
	person2
	person3

	class int
	score int
}

func main() {
	var stu student2
	stu.id = 1001
	stu.name = "亚索"
	stu.age = 10
	stu.score = -5
	stu.class = 300
	stu.addr = "召唤师峡谷"
	stu.sex = "男"
	fmt.Println(stu)
}
